package com.ophiux.cs.application.user.dto;

import com.ophiux.cs.application.core.RequestDTO;
import com.ophiux.cs.application.core.Throws.ParamException;
import com.ophiux.utils.common.StringUtil;

public class updateUserRecoreInfoRequest extends RequestDTO{

	private String USER_ID;//	用户ID	VARCHAR2(32)	唯一	
	private String LOGIN_TOKEN;//	用户登录秘钥	VARCHAR2(32)	唯一	单次登录唯一标志
	private String LOGIN_TIME;//	登录时间	VARCHAR2(32)		
	private String LOGOUT_TIME;//	退出时间	VARCHAR2(32)		
	private String STATE;//	状态	VARCHAR2(5)		1：有效    0：失效
	private String PLATFORM_ID;//	登录平台标识	VARCHAR2(5)		关联发布平台表“cs_publish_platform”
	
	public String getUSER_ID() {
		return USER_ID;
	}

	public void setUSER_ID(String uSER_ID) {
		USER_ID = uSER_ID;
	}

	public String getLOGIN_TOKEN() {
		return LOGIN_TOKEN;
	}

	public void setLOGIN_TOKEN(String lOGIN_TOKEN) {
		LOGIN_TOKEN = lOGIN_TOKEN;
	}

	public String getLOGIN_TIME() {
		return LOGIN_TIME;
	}

	public void setLOGIN_TIME(String lOGIN_TIME) {
		LOGIN_TIME = lOGIN_TIME;
	}

	public String getLOGOUT_TIME() {
		return LOGOUT_TIME;
	}

	public void setLOGOUT_TIME(String lOGOUT_TIME) {
		LOGOUT_TIME = lOGOUT_TIME;
	}

	public String getSTATE() {
		return STATE;
	}

	public void setSTATE(String sTATE) {
		STATE = sTATE;
	}

	public String getPLATFORM_ID() {
		return PLATFORM_ID;
	}

	public void setPLATFORM_ID(String pLATFORM_ID) {
		PLATFORM_ID = pLATFORM_ID;
	}

	public void paramVer() throws ParamException{
		if(StringUtil.isEmpty(this.USER_ID)) {
			throw new ParamException("用户唯一标识不可为空");
		}
		if(StringUtil.isEmpty(this.STATE)) {
			throw new ParamException("记录状态不可为空");
		}
	}
	
	@Override
	public boolean isParamValid() {
		
		return false;
	}

}
